﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Delay
{
    public class ShowDownloadItem : INotifyPropertyChanged
    {

        //appid

       

        

        private string _type;
        public string Type
        {
            get
            {
                return _type;
            }
            set
            {
                if (_type != value)
                {
                    _type = value;
                    NotifyPropertyChanged("Type");
                }
            }
        }

        private int _appid;
        public int Appid
        {
            get
            {
                return _appid;
            }
            set
            {
                if (_appid != value)
                {
                    _appid = value;
                    NotifyPropertyChanged("Appid");
                }
            }
        }
        //int

        //downcount
        private int _downcount;
        public int Downcount
        {
            get
            {
                return _downcount;
            }
            set
            {
                if (_downcount != value)
                {
                    _downcount = value;
                    NotifyPropertyChanged("Downcount");
                }
            }
        }
        //isfee
        private int _isfee;
        public int Isfee
        {
            get
            {
                return _isfee;
            }
            set
            {
                if (_isfee != value)
                {
                    _isfee = value;
                    NotifyPropertyChanged("Isfee");
                }
            }
        }
        //score
        private int _score;
        public int Score
        {
            get
            {
                return _score;
            }
            set
            {
                if (_score != value)
                {
                    _score = value;
                    NotifyPropertyChanged("Score");
                }
            }
        }
        //position
        private int _position;
        public int Position
        {
            get
            {
                return _position;
            }
            set
            {
                if (_position != value)
                {
                    _position = value;
                    NotifyPropertyChanged("Position");
                }
            }
        }
        //int	urltype
        private int _urltype;
        public int Urltype
        {
            get
            {
                return _urltype;
            }
            set
            {
                if (_urltype != value)
                {
                    _urltype = value;
                    NotifyPropertyChanged("Urltype");
                }
            }
        }
        //integral
        private int _integral;
        public int Integral
        {
            get
            {
                return _integral;
            }
            set
            {
                if (_integral != value)
                {
                    _integral = value;
                    NotifyPropertyChanged("Integral");
                }
            }
        }
        //checkscore
        private int _checkscore;
        public int Checkscore
        {
            get
            {
                return _checkscore;
            }
            set
            {
                if (_checkscore != value)
                {
                    _checkscore = value;
                    NotifyPropertyChanged("Checkscore");
                }
            }
        }
        //isad
        private int _isad;
        public int Isad
        {
            get
            {
                return _isad;
            }
            set
            {
                if (_isad != value)
                {
                    _isad = value;
                    NotifyPropertyChanged("Isad");
                }
            }
        }
        //string

        //addtime
        private string _addtime;
        public string Addtime
        {
            get
            {
                return _addtime;
            }
            set
            {
                if (_addtime != value)
                {
                    _addtime = value;
                    NotifyPropertyChanged("Addtime");
                }
            }
        }
        //filesize
        private string _filesize;
        public string Filesize
        {
            get
            {
                return _filesize;
            }
            set
            {
                if (_filesize != value)
                {
                    _filesize = value;
                    NotifyPropertyChanged("Filesize");
                }
            }
        }
        //filename
        private string _filename;
        public string Filename
        {
            get
            {
                return _filename;
            }
            set
            {
                if (_filename != value)
                {
                    _filename = value;
                    NotifyPropertyChanged("Filename");
                }
            }
        }
        //icon
        private string _icon;
        public string Icon
        {
            get
            {
                return _icon;
            }
            set
            {
                if (_icon != value)
                {
                    _icon = value;
                    NotifyPropertyChanged("Icon");
                }
            }
        }
        //title
        private string _title;
        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                if (_title != value)
                {
                    _title = value;
                    NotifyPropertyChanged("Title");
                }
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

    }
}
